home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-05-21 | 1.0 KB | 39 lines | [TEXT/ttxt] |
- in module DemoModule
-
- --*******************************************************************************
- --* Class name: RolloverAnimation
- --*
- --* Inherits from: Animation and Rollover
- --* Class type: Concrete
- --* Component: User Interface
- --*
- --* Description: This class is an example of how to mix in the Rollover class
- --* with an Animation. The animation will play when the mouse
- --* enters its boundary and stop when it leaves.
- --*
- --* Usage: bs := new RolloverAnimation series:<a series of bitmaps> \
- --* scale:8
- --*
- --* IVs: none
- --*
- --* Methods: init
- --*
- --* Required files: animate.sx
- --* rollover.sx
- --*
- --* Notes:
- --*
- --* Author: Su Quek - Kaleida Labs, Inc.
- --*******************************************************************************
- class RolloverAnimation (Animation, Rollover)
- end
-
- method init self {class RolloverAnimation} #rest args ->
- (
- apply nextmethod self args
- self.enterAction := start
- self.exitAction := stop
- self.authordata := self
-
- self
- )